<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%--<x:parse xml="${param.xmlstr}" var="xmlData" />--%>

<div class="t_bar">经费预算</div>
<div style="position: absolute;right: 50px;top: 317px;"><strong>单位（万元）</strong></div>
<table class="t_css" width="100%" border="0" cellpadding="0"
	   cellspacing="1" id="">
	<tr class="t_tr">
		<td align="left" width="100%" ><strong>一、资金预算</strong></td>
	</tr>
</table>
<table class="t_css" width="100%" border="0" cellpadding="0"
	   cellspacing="1" id="fundInfo_from">

	<tr class="t_tr">
		<td align="center" width="20%" rowspan="2"><strong>资金来源</strong></td>
		<td class="TblHead" align="center" width="20%" rowspan="2"><strong>预算金额</strong></td>
		<td class="TblHead" align="center" width="60%"  colspan="3"><strong>其中</strong></td>
	</tr>
	<tr>
		<td class="TblHead" align="center" ><strong><span name="budget/select_yea1">${param.statYear}</span>年</strong></td>
		<td class="TblHead" align="center" ><strong><span name="budget/select_yea2">${param.statYear+1}</span>年</strong></td>
		<td class="TblHead" align="center" ><strong><span name="budget/select_yea3">${param.statYear+2}</span>年</strong></td>
	</tr>
	<tr>
		<td align="left" style="padding-left:20px">1、中央引导资金拨款</td>
		<td align="center">
			<input type="hidden" name="budget/invest_detail_from/invest[00]@invest_code" value="00" />
			<input type="hidden" name="budget/invest_detail_from/invest[00]/name" value="1、中央引导资金拨款" />

			<input type="text" name="budget/invest_detail_from/invest[00]/total_each" id="total_each_0"
				   disabled="disabled" value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='00']/total_each"/>"
				   class="gray  valueEqual:total_each_compare:total_each_0" onfocus="InitInput.setNumber(this,9,2,2)" style="text-align: right;width: 80%"
				   label="经费预算-->资金预算-->资金来源-->中央引导资金拨款-->预算金额"/>

			<input type="hidden" name="budget/invest_detail_from/invest[00]/total_each_compare" id="total_each_compare"
				   disabled="disabled" value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='00']/total_each_compare"/>"
				   class="gray" onfocus="InitInput.setNumber(this,9,2,2)" style="text-align: right;width: 80%"
				   label="经费预算-->资金预算-->资金来源-->中央引导资金拨款-->${param.statYear}、${param.statYear+1}、${param.statYear+2}三年金额之和"/>

			<%-- <input type="hidden" name="budget/invest_detail_from/invest[00]/total_investfrom" id="total_investfrom_0"
                    label="省财政拨款-->预算金额"  style="text-align:right; width:80%;"
                   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='00']/total_investfrom" />"
                   onfocus="InitInput.setNumber(this,9,2,2)"
                   onchange="countFundAuto('total_','investfrom_0,investfrom_1,investfrom_2,investfrom_4','investfrom_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                              /*countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');*/
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1,invest_yea4_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2,invest_yea4_2','each_2');
                          countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3,invest_yea4_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4,invest_yea4_4','each_4');"
                   /> --%>
		</td>

		<td align="center">
			<input type="text" name="budget/invest_detail_from/invest[00]/total_invest_yea1" id="total_invest_yea1_0"
				   style="text-align:right; width:80%;"
				   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='00']/total_invest_yea1" />"
				   onfocus="InitInput.setNumber(this,9,2,2)"
				   onchange="
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                              /*countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');*/
                           countFundAuto('total_','invest_yea4_0,invest_yea4_1,invest_yea4_2,invest_yea4_4','invest_yea4_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0,invest_yea4_0','each_compare');
                            /* countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');*/
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1,invest_yea4_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2,invest_yea4_2','each_2');
                          countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3,invest_yea4_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4,invest_yea4_4','each_4');
                             countFundAuto('total_','each_0,each_1,each_2,each_4','investfrom_5');"
			/>
		</td>
		<td align="center">
			<input type="text" name="budget/invest_detail_from/invest[00]/total_invest_yea2" id="total_invest_yea2_0"
				   style="text-align:right; width:80%;"
				   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='00']/total_invest_yea2" />"
				   onfocus="InitInput.setNumber(this,9,2,2)"
				   onchange="
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                              /*countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');*/
                             countFundAuto('total_','invest_yea4_0,invest_yea4_1,invest_yea4_2,invest_yea4_4','invest_yea4_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0,invest_yea4_0','each_compare');
                             /*countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');*/
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1,invest_yea4_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2,invest_yea4_2','each_2');
                          countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3,invest_yea4_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4,invest_yea4_4','each_4');
                             countFundAuto('total_','each_0,each_1,each_2,each_4','investfrom_5');"
			/>
		</td>
		<td align="center">
			<input type="text" name="budget/invest_detail_from/invest[00]/total_invest_yea3" id="total_invest_yea3_0"
				   style="text-align:right; width:80%;" class="gray" disabled="disabled"
				   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='00']/total_invest_yea3" />"
				   onfocus="InitInput.setNumber(this,9,2,2)"
				   onchange="
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                              /*countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');*/
                             countFundAuto('total_','invest_yea4_0,invest_yea4_1,invest_yea4_2,invest_yea4_4','invest_yea4_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0,invest_yea4_0','each_compare');
                            /* countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');*/
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1,invest_yea4_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2,invest_yea4_2','each_2');
                          countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3,invest_yea4_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4,invest_yea4_4','each_4');
                             countFundAuto('total_','each_0,each_1,each_2,each_4','investfrom_5');"
			/>
		</td>

	</tr>
	<%--<tr>
		<td align="left" style="padding-left:20px">2、市（县）财政拨款</td>
		<td align="center">
			<input type="hidden" name="budget/invest_detail_from/invest[01]@invest_code" value="01" />
			<input type="hidden" name="budget/invest_detail_from/invest[01]/name" value="2、市（县）财政拨款" />

			<input type="text" name="budget/invest_detail_from/invest[01]/total_each" id="total_each_1"
				   disabled="disabled" value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='01']/total_each"/>"
				   class="gray " onfocus="InitInput.setNumber(this,9,2,2)" style="text-align: right;width: 80%"
				   label="市（县）财政拨款-->预算金额"/>

			&lt;%&ndash; <input type="hidden" name="budget/invest_detail_from/invest[01]/total_investfrom" id="total_investfrom_1"
                    label="市（县）财政拨款-->预算金额"  style="text-align:right; width:80%;"
                   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='01']/total_investfrom" />"
                   onfocus="InitInput.setNumber(this,9,2,2)"
                       onchange="countFundAuto('total_','investfrom_0,investfrom_1,investfrom_2,investfrom_4','investfrom_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                              /*countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');*/
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1,invest_yea4_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2,invest_yea4_2','each_2');
                          countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3,invest_yea4_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4,invest_yea4_4','each_4');"
                   /> &ndash;%&gt;
		</td>
		<td align="center">
			<input type="text" name="budget/invest_detail_from/invest[01]/total_invest_yea1" id="total_invest_yea1_1"
				   style="text-align:right; width:80%;"
				   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='01']/total_invest_yea1" />"
				   onfocus="InitInput.setNumber(this,9,2,2)"
				   onchange="
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                              /*countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');*/
                             countFundAuto('total_','invest_yea4_0,invest_yea4_1,invest_yea4_2,invest_yea4_4','invest_yea4_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0,invest_yea4_0','each_compare');
                             /*countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');*/
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1,invest_yea4_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2,invest_yea4_2','each_2');
                          countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3,invest_yea4_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4,invest_yea4_4','each_4');
                             countFundAuto('total_','each_0,each_1,each_2,each_4','investfrom_5');"
			/>
		</td>
		<td align="center">
			<input type="text" name="budget/invest_detail_from/invest[01]/total_invest_yea2" id="total_invest_yea2_1"
				   style="text-align:right; width:80%;"
				   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='01']/total_invest_yea2" />"
				   onfocus="InitInput.setNumber(this,9,2,2)"
				   onchange="
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                              /*countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');*/
                             countFundAuto('total_','invest_yea4_0,invest_yea4_1,invest_yea4_2,invest_yea4_4','invest_yea4_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0,invest_yea4_0','each_compare');
                            /* countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');*/
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1,invest_yea4_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2,invest_yea4_2','each_2');
                          countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3,invest_yea4_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4,invest_yea4_4','each_4');
                             countFundAuto('total_','each_0,each_1,each_2,each_4','investfrom_5');"
			/>
		</td>
		<td align="center">
			<input type="text" name="budget/invest_detail_from/invest[01]/total_invest_yea3" id="total_invest_yea3_1"
				   style="text-align:right; width:80%;"
				   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='01']/total_invest_yea3" />"
				   onfocus="InitInput.setNumber(this,9,2,2)"
				   onchange="
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                              /*countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');*/
                             countFundAuto('total_','invest_yea4_0,invest_yea4_1,invest_yea4_2,invest_yea4_4','invest_yea4_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0,invest_yea4_0','each_compare');
                             /*countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');*/
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1,invest_yea4_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2,invest_yea4_2','each_2');
                          countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3,invest_yea4_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4,invest_yea4_4','each_4');
                             countFundAuto('total_','each_0,each_1,each_2,each_4','investfrom_5');"
			/>
		</td>

	</tr>--%>
	<tr>
		<td align="left" style="padding-left:20px">2、单位自筹资金</td>
		<td align="center">
			<input type="hidden" name="budget/invest_detail_from/invest[02]@invest_code" value="02" />
			<input type="hidden" name="budget/invest_detail_from/invest[02]/name" value="2、单位自筹资金" />

			<input type="text" name="budget/invest_detail_from/invest[02]/total_each" id="total_each_2"
				   disabled="disabled" value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='02']/total_each"/>"
				   class="gray " onfocus="InitInput.setNumber(this,9,2,2)" style="text-align: right;width: 80%"
				   label="经费预算-->资金预算-->资金来源-->单位自筹资金-->预算金额"/>

			<%-- <input type="text" name="budget/invest_detail_from/invest[02]/total_investfrom" id="total_investfrom_2"
                    label="单位自筹资金-->预算金额"  style="text-align:right; width:80%;"
                   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='02']/total_investfrom" />"
                   onfocus="InitInput.setNumber(this,9,2,2)"
                   onfocus="InitInput.setNumber(this,9,2,2)"
                       onchange="countFundAuto('total_','investfrom_0,investfrom_1,investfrom_2,investfrom_4','investfrom_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                              /*countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');*/
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1,invest_yea4_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2,invest_yea4_2','each_2');
                          countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3,invest_yea4_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4,invest_yea4_4','each_4');"
                   /> --%>
		</td>
		<td align="center">
			<input type="text" name="budget/invest_detail_from/invest[02]/total_invest_yea1" id="total_invest_yea1_2"
				   style="text-align:right; width:80%;"
				   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='02']/total_invest_yea1" />"
				   onfocus="InitInput.setNumber(this,9,2,2)" label="经费预算-->资金预算-->资金来源-->${param.statYear}年-->单位自筹资金"
				   onchange="
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                              /*countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');*/
                             countFundAuto('total_','invest_yea4_0,invest_yea4_1,invest_yea4_2,invest_yea4_4','invest_yea4_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0,invest_yea4_0','each_compare');
                             /*countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');*/
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1,invest_yea4_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2,invest_yea4_2','each_2');
                          countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3,invest_yea4_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4,invest_yea4_4','each_4');
                             countFundAuto('total_','each_0,each_1,each_2,each_4','investfrom_5');"
			/>
		</td>
		<td align="center">
			<input type="text" name="budget/invest_detail_from/invest[02]/total_invest_yea2" id="total_invest_yea2_2"
				   style="text-align:right; width:80%;"
				   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='02']/total_invest_yea2" />"
				   onfocus="InitInput.setNumber(this,9,2,2)" label="经费预算-->资金预算-->资金来源-->${param.statYear+1}年-->单位自筹资金"
				   onchange="
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                              /*countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');*/
                             countFundAuto('total_','invest_yea4_0,invest_yea4_1,invest_yea4_2,invest_yea4_4','invest_yea4_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0,invest_yea4_0','each_compare');
                             /*countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');*/
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1,invest_yea4_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2,invest_yea4_2','each_2');
                          countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3,invest_yea4_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4,invest_yea4_4','each_4');
                             countFundAuto('total_','each_0,each_1,each_2,each_4','investfrom_5');"
			/>
		</td>
		<td align="center">
			<input type="text" name="budget/invest_detail_from/invest[02]/total_invest_yea3" id="total_invest_yea3_2"
				   style="text-align:right; width:80%;" class="gray" disabled="disabled"
				   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='02']/total_invest_yea3" />"
				   onfocus="InitInput.setNumber(this,9,2,2)" label="经费预算-->资金预算-->资金来源-->${param.statYear+2}年-->单位自筹资金"
				   onchange="
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                              /*countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');*/
                             countFundAuto('total_','invest_yea4_0,invest_yea4_1,invest_yea4_2,invest_yea4_4','invest_yea4_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0,invest_yea4_0','each_compare');
                             /*countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');*/
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1,invest_yea4_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2,invest_yea4_2','each_2');
                          countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3,invest_yea4_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4,invest_yea4_4','each_4');
                             countFundAuto('total_','each_0,each_1,each_2,each_4','investfrom_5');"
			/>
		</td>

	</tr>
	<%--<tr>
		<td align="left" style="padding-left:40px">其中：银行贷款</td>
		<td align="center">
			<input type="hidden" name="budget/invest_detail_from/invest[03]@invest_code" value="03" />
			<input type="hidden" name="budget/invest_detail_from/invest[03]/name" value="其中：银行贷款" />

			<input type="text" name="budget/invest_detail_from/invest[03]/total_each" id="total_each_3"
				   disabled="disabled" value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='03']/total_each"/>"
				   class="gray &lt;%&ndash;valueGreatEqual:total_each_2:total_each_3&ndash;%&gt;" onfocus="InitInput.setNumber(this,9,2,2)" style="text-align: right;width: 80%"
				   label="资金预算-->资金来源预算-->其中：银行贷款-->预算金额"/>

			&lt;%&ndash; <input type="text" name="budget/invest_detail_from/invest[03]/total_investfrom" id="total_investfrom_3"
                   class="valueGreatEqual:total_investfrom_2:total_investfrom_3" label="其中：银行贷款-->预算金额"  style="text-align:right; width:80%;"
                   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='03']/total_investfrom" />"
                   onfocus="InitInput.setNumber(this,9,2,2)"
                       onchange="countFundAuto('total_','investfrom_0,investfrom_1,investfrom_2,investfrom_4','investfrom_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                              /*countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');*/
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1,invest_yea4_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2,invest_yea4_2','each_2');
                          countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3,invest_yea4_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4,invest_yea4_4','each_4');"
                   /> &ndash;%&gt;
		</td>
		<td align="center">
			<input type="text" name="budget/invest_detail_from/invest[03]/total_invest_yea1" id="total_invest_yea1_3"
				   style="text-align:right; width:80%;"  class="valueGreatEqual:total_invest_yea1_2:total_invest_yea1_3"
				   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='03']/total_invest_yea1" />"
				   onfocus="InitInput.setNumber(this,9,2,2)"  label="资金预算-->资金来源预算-->${param.statYear}年-->其中：银行贷款"
				   onchange="
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                              /*countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');*/
                             countFundAuto('total_','invest_yea4_0,invest_yea4_1,invest_yea4_2,invest_yea4_4','invest_yea4_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0,invest_yea4_0','each_compare');
                             /*countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');*/
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1,invest_yea4_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2,invest_yea4_2','each_2');
                          countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3,invest_yea4_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4,invest_yea4_4','each_4');
                             countFundAuto('total_','each_0,each_1,each_2,each_4','investfrom_5');"
			/>
		</td>
		<td align="center">
			<input type="text" name="budget/invest_detail_from/invest[03]/total_invest_yea2" id="total_invest_yea2_3"
				   style="text-align:right; width:80%;" class="valueGreatEqual:total_invest_yea2_2:total_invest_yea2_3"
				   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='03']/total_invest_yea2" />"
				   onfocus="InitInput.setNumber(this,9,2,2)" label="资金预算-->资金来源预算-->${param.statYear+1}年-->其中：银行贷款"
				   onchange="
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                              /*countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');*/
                             countFundAuto('total_','invest_yea4_0,invest_yea4_1,invest_yea4_2,invest_yea4_4','invest_yea4_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0,invest_yea4_0','each_compare');
                             /*countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');*/
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1,invest_yea4_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2,invest_yea4_2','each_2');
                          countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3,invest_yea4_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4,invest_yea4_4','each_4');
                             countFundAuto('total_','each_0,each_1,each_2,each_4','investfrom_5');"
			/>
		</td>
		<td align="center">
			<input type="text" name="budget/invest_detail_from/invest[03]/total_invest_yea3" id="total_invest_yea3_3"
				   style="text-align:right; width:80%;" class="valueGreatEqual:total_invest_yea3_2:total_invest_yea3_3"
				   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='03']/total_invest_yea3" />"
				   onfocus="InitInput.setNumber(this,9,2,2)" label="资金预算-->资金来源预算-->${param.statYear+2}年-->其中：银行贷款"
				   onchange="
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                              /*countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');*/
                             countFundAuto('total_','invest_yea4_0,invest_yea4_1,invest_yea4_2,invest_yea4_4','invest_yea4_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0,invest_yea4_0','each_compare');
                             /*countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');*/
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1,invest_yea4_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2,invest_yea4_2','each_2');
                          countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3,invest_yea4_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4,invest_yea4_4','each_4');
                             countFundAuto('total_','each_0,each_1,each_2,each_4','investfrom_5');"
			/>
		</td>

	</tr>--%>
	<tr>
		<td align="left" style="padding-left:20px">3、其它资金来源</td>
		<td align="center">
			<input type="hidden" name="budget/invest_detail_from/invest[04]@invest_code" value="04" />
			<input type="hidden" name="budget/invest_detail_from/invest[04]/name" value="3、其它资金来源" />

			<input type="text" name="budget/invest_detail_from/invest[04]/total_each" id="total_each_4"
				   disabled="disabled" value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='04']/total_each"/>"
				   class="gray valueGreatEqual:total_investfrom_4:total_each_4" onfocus="InitInput.setNumber(this,9,2,2)" style="text-align: right;width: 80%"
				   label="经费预算-->资金预算-->资金来源-->其它资金来源-->预算金额"/>

			<%-- <input type="text" name="budget/invest_detail_from/invest[04]/total_investfrom" id="total_investfrom_4"
                    label="其它经费来源-->预算金额"  style="text-align:right; width:80%;"
                   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='04']/total_investfrom" />"
                   onfocus="InitInput.setNumber(this,9,2,2)"
                       onchange="countFundAuto('total_','investfrom_0,investfrom_1,investfrom_2,investfrom_4','investfrom_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                              /*countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');*/
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1,invest_yea4_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2,invest_yea4_2','each_2');
                          countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3,invest_yea4_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4,invest_yea4_4','each_4');"
                   /> --%>
		</td>
		<td align="center">
			<input type="text" name="budget/invest_detail_from/invest[04]/total_invest_yea1" id="total_invest_yea1_4"
				   style="text-align:right; width:80%;"
				   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='04']/total_invest_yea1" />"
				   onfocus="InitInput.setNumber(this,9,2,2)"
				   onchange="
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                              /*countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');*/
                             countFundAuto('total_','invest_yea4_0,invest_yea4_1,invest_yea4_2,invest_yea4_4','invest_yea4_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0,invest_yea4_0','each_compare');
                             /*countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');*/
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1,invest_yea4_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2,invest_yea4_2','each_2');
                          countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3,invest_yea4_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4,invest_yea4_4','each_4');
                             countFundAuto('total_','each_0,each_1,each_2,each_4','investfrom_5');"
			/>
		</td>
		<td align="center">
			<input type="text" name="budget/invest_detail_from/invest[04]/total_invest_yea2" id="total_invest_yea2_4"
				   style="text-align:right; width:80%;"
				   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='04']/total_invest_yea2" />"
				   onfocus="InitInput.setNumber(this,9,2,2)"
				   onchange="
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                              /*countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');*/
                             countFundAuto('total_','invest_yea4_0,invest_yea4_1,invest_yea4_2,invest_yea4_4','invest_yea4_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0,invest_yea4_0','each_compare');
                            /* countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');*/
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1,invest_yea4_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2,invest_yea4_2','each_2');
                          countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3,invest_yea4_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4,invest_yea4_4','each_4');
                             countFundAuto('total_','each_0,each_1,each_2,each_4','investfrom_5');"
			/>
		</td>
		<td align="center">
			<input type="text" name="budget/invest_detail_from/invest[04]/total_invest_yea3" id="total_invest_yea3_4"
				   style="text-align:right; width:80%;" class="gray" disabled="disabled"
				   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='04']/total_invest_yea3" />"
				   onfocus="InitInput.setNumber(this,9,2,2)"
				   onchange="
                             countFundAuto('total_','invest_yea1_0,invest_yea1_1,invest_yea1_2,invest_yea1_4','invest_yea1_5');
                             countFundAuto('total_','invest_yea2_0,invest_yea2_1,invest_yea2_2,invest_yea2_4','invest_yea2_5');
                              /*countFundAuto('total_','invest_yea3_0,invest_yea3_1,invest_yea3_2,invest_yea3_4','invest_yea3_5');*/
                             countFundAuto('total_','invest_yea4_0,invest_yea4_1,invest_yea4_2,invest_yea4_4','invest_yea4_5');
                             countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0,invest_yea4_0','each_compare');
                            /* countFundAuto('total_','invest_yea1_0,invest_yea2_0,invest_yea3_0','each_0');*/
                             countFundAuto('total_','invest_yea1_1,invest_yea2_1,invest_yea3_1,invest_yea4_1','each_1');
                             countFundAuto('total_','invest_yea1_2,invest_yea2_2,invest_yea3_2,invest_yea4_2','each_2');
                          countFundAuto('total_','invest_yea1_3,invest_yea2_3,invest_yea3_3,invest_yea4_3','each_3');
                             countFundAuto('total_','invest_yea1_4,invest_yea2_4,invest_yea3_4,invest_yea4_4','each_4');
                             countFundAuto('total_','each_0,each_1,each_2,each_4','investfrom_5');"
			/>
		</td>

	</tr>
	<tr>
		<td align="center"><strong>来源合计</strong></td>
		<td align="center">
			<input type="hidden" name="budget/invest_detail_from/invest[05]@invest_code" value="05" />
			<input type="hidden" name="budget/invest_detail_from/invest[05]/name" value="来源合计" />
			<input type="text" name="budget/invest_detail_from/invest[05]/total_investfrom" id="total_investfrom_5"
				   class="gray "   disabled label="经费预算-->资金预算-->资金来源-->来源合计-->预算金额"  style="text-align:right; width:80%;"
				   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='05']/total_investfrom" />"
				   onfocus="InitInput.setNumber(this,9,2,2)"
			/>

		</td>
		<td align="center">
			<input type="text" name="budget/invest_detail_from/invest[05]/total_invest_yea1" id="total_invest_yea1_5"
				   class="gray" disabled label="经费预算-->资金预算-->资金来源-->${param.statYear}年来源合计"  style="text-align:right; width:80%;"
				   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='05']/total_invest_yea1" />"
				   onfocus="InitInput.setNumber(this,9,2,2)"
			/>
		</td>
		<td align="center">
			<input type="text" name="budget/invest_detail_from/invest[05]/total_invest_yea2" id="total_invest_yea2_5"
				   class="gray" disabled label="经费预算-->资金预算-->资金来源-->${param.statYear+1}年来源合计"  style="text-align:right; width:80%;"
				   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='05']/total_invest_yea2" />"
				   onfocus="InitInput.setNumber(this,9,2,2)"
			/>
		</td>
		<td align="center">
			<input type="text" name="budget/invest_detail_from/invest[05]/total_invest_yea3" id="total_invest_yea3_5"
				   class="gray" disabled label="经费预算-->资金预算-->资金来源-->${param.statYear+2}年来源合计"  style="text-align:right; width:80%;" class="gray" disabled="disabled"
				   value="<x:out select="$xmlData/data/budget/invest_detail_from/invest[@invest_code='05']/total_invest_yea3" />"
				   onfocus="InitInput.setNumber(this,9,2,2)"
			/>
		</td>
	</tr>
</table>

<div class="t_bar" ><span class="color_red">*</span>资金支出预算说明（建议1000字以内）</div>
<table id="tbl" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
	<col style="width:34%"/>
	<col style="width:40%"/>
	<col style="width:13%"/>
	<col style="width:13%"/>
	<tr>
		<td style="width:100%;">
			<p>资金主要用于项目承担单位开展科技成果研发转化活动，或建设创新创业平台等，请详细列明经费主要用途。如同一科目同时编列省级财政专项资金和其他来源资金的，请分别说明。科技成果研发转化类项目可参照省重点研发计划经费预算科目说明。</p>
		</td>
	</tr>
	<tr>
		<td colspan="4">
			<textarea name="project/budget_description" style="width:98%" class="input_textarea required maxlength:1000" label="资金支出预算说明" rows=15 cols=60><x:out select="$xmlData/data/project/budget_description" /></textarea>
			<input type="hidden" name="project/budget_description_hidden" id="project/budget_description_hidden" value="<x:out select="$xmlData/data/project/budget_description_hidden" />"/>
		</td>
	</tr>
</table>
<div class="t_bar">
    项目拟购置、试制科研仪器设备清单（如无仪器设备购置的不需填写）（单位：万元）
</div>
<table id="shibei" cellpadding="0" class="table01 t_css" width="100%"
       border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
    <thead>
    <tr>
        <th width="5%">选择</th>
        <th width="5%">序号</th>
        <th width="10%">采购内容</th>
        <th width="10%">型号</th>
        <th width="10%">产地</th>
        <th width="10%">数量</th>
        <th width="10%">单价</th>
        <th width="10%">金额</th>
        <th width="10%">用途</th>
        <th width="20%">经费来源</th>
    </tr>
    </thead>
    <tbody id="tab">
    <tr style="display: none">
        <td align="center"><input type="radio" class="radiobutton"
                                  name="setshibei"></td>
        <td align="center"><span name="shibeis|shibei[0]@seq_no">[index]</span>
        </td>
        <td align="center"><input name="shibeis|shibei[0]|shibei_name"
                                  value="" label="采购内容" class="required input_text" maxlength="100"
                                  style="width: 80%" /></td>
        <td align="center"><input
                name="shibeis|shibei[0]|shibei_xinghao" value="" label="型号"
                class="required input_text" maxlength="100" style="width: 80%" /></td>
        <td align="center"><input
                name="shibeis|shibei[0]|shibei_address" value="" label="产地"
                class="required input_text" maxlength="100" style="width: 80%" /></td>
        <td align="center"><input name="shibeis|shibei[0]|shibei_num"
                                  value="" label="数量"
                                  onchange="
					countTable_swj3('shibei','shebei_total_price',5,6,7);
					countTable_swj1('shibei','shebei_total_num',5);
					countTable_swj4('shibei','zcshebei_total_num',5,9);
 					countTable_swj5('shibei','zxshebei_total_num',5,9);
 					countTable_swj7('shibei','zcshebei_total_price',7,9);
		 			countTable_swj6('shibei','zxshebei_total_price',7,9);"
                                  class="required input_text"
                                  onfocus="InitInput.setNumber(this,7,0,0)"
                                  style="text-align: right; width: 80%" /></td>
        <td align="center"><input name="shibeis|shibei[0]|shibei_price"
                                  value="" label="单价"
                                  onchange="countTable_swj3('shibei','shebei_total_price',5,6,7);
					countTable_swj7('shibei','zcshebei_total_price',7,9);
		 				 countTable_swj6('shibei','zxshebei_total_price',7,9);"
                                  class="required input_text"
                                  onfocus="InitInput.setNumber(this,7,2,2)"
                                  style="text-align: right; width: 80%" /></td>
        <td align="center"><input name="shibeis|shibei[0]|shibei_money"
                                  value="" label="金额" disabled
                                  onchange="countTable_swj2('shibei','shebei_total_price',7);
							  countTable_swj7('shibei','zcshebei_total_price',7,9);
 				 		      countTable_swj6('shibei','zxshebei_total_price',7,9);"
                                  class="required gray" onfocus="InitInput.setNumber(this,7,2,2)"
                                  style="text-align: right; width: 80%" /></td>
        <td align="center"><input name="shibeis|shibei[0]|shibei_yongtu"
                                  value="" label="用途" class="required input_text" maxlength="100"
                                  style="width: 80%" /></td>
        <td align="center"><cpt:select id="money_where_[index]"
									   key="money_where2" name="money_where"
                                       onChange="
		 				initControlValue(this.id);
		 				 countTable_swj4('shibei','zcshebei_total_num',5,9);
		 				 countTable_swj5('shibei','zxshebei_total_num',5,9);
		 				 countTable_swj7('shibei','zcshebei_total_price',7,9);
		 				 countTable_swj6('shibei','zxshebei_total_price',7,9);"></cpt:select>
            <input type="hidden" name="shibeis|shibei[0]|money_where_value"
                   value="" class="required input_text" label="经费来源" /> <input
                    type="hidden" name="shibeis|shibei[0]|money_where_name" value="" />
        </td>
    </tr>
    <c:set value="0" var="index" scope="page" />
    <x:forEach select="$xmlData/data/shibeis/shibei" var="shibei">
        <c:choose>
            <c:when test="${index<10}">
                <c:set value="0" var="flag" scope="page" />
            </c:when>
            <c:otherwise>
                <c:set value="" var="flag" scope="page" />
            </c:otherwise>
        </c:choose>
        <tr>
            <td align="center"><input type="radio" class="radiobutton"
                                      name="setshibei"></td>
            <td align="center"><span
                    name="shibeis/shibei[${flag}${index}]@seq_no"><x:out
                    select="$shibei/@seq_no" /></span></td>
            <td align="center"><input
                    name="shibeis/shibei[${flag}${index}]/shibei_name"
                    value="<x:out select="$shibei/shibei_name"/>" label="采购内容"
                    class="required input_text" maxlength="100" style="width: 80%" /></td>
            <td align="center"><input
                    name="shibeis/shibei[${flag}${index}]/shibei_xinghao"
                    value="<x:out select="$shibei/shibei_xinghao"/>" label="型号"
                    class="required input_text" maxlength="100" style="width: 80%" /></td>
            <td align="center"><input
                    name="shibeis/shibei[${flag}${index}]/shibei_address"
                    value="<x:out select="$shibei/shibei_address"/>" label="产地"
                    class="required input_text" maxlength="100" style="width: 80%" /></td>
            <td align="center"><input
                    name="shibeis/shibei[${flag}${index}]/shibei_num"
                    value="<x:out select="$shibei/shibei_num"/>" label="数量"
                    class="required input_text"
                    onfocus="InitInput.setNumber(this,7,0,0)"
                    onchange="
					countTable_swj3('shibei','shebei_total_price',5,6,7);
					countTable_swj1('shibei','shebei_total_num',5);
					countTable_swj4('shibei','zcshebei_total_num',5,9);
 					countTable_swj5('shibei','zxshebei_total_num',5,9);
 					countTable_swj7('shibei','zcshebei_total_price',7,9);
		 			countTable_swj6('shibei','zxshebei_total_price',7,9);"
                    style="text-align: right; width: 80%" /></td>
            <td align="center"><input
                    name="shibeis/shibei[${flag}${index}]/shibei_price"
                    onchange="countTable_swj3('shibei','shebei_total_price',5,6,7)
					countTable_swj7('shibei','zcshebei_total_price',7,9);
		 			countTable_swj6('shibei','zxshebei_total_price',7,9);"
                    value="<x:out select="$shibei/shibei_price"/>" label="单价"
                    class="required input_text"
                    onfocus="InitInput.setNumber(this,7,2,2)"
                    style="text-align: right; width: 80%" /></td>
            <td align="center"><input
                    name="shibeis/shibei[${flag}${index}]/shibei_money" disabled
                    value="<x:out select="$shibei/shibei_money"/>" label="金额"
                    class="required gray" onfocus="InitInput.setNumber(this,7,2,2)"
                    onchange="countTable_swj2('shibei','shebei_total_price',7)
					countTable_swj7('shibei','zcshebei_total_price',7,9);
 				    countTable_swj6('shibei','zxshebei_total_price',7,9);"
                    style="text-align: right; width: 80%" /></td>
            <td align="center"><input
                    name="shibeis/shibei[${flag}${index}]/shibei_yongtu"
                    value="<x:out select="$shibei/shibei_yongtu"/>" label="用途"
                    class="required input_text" maxlength="100" style="width: 80%" /></td>
                <%-- 	<td align="center">
                    <c:set var="card_type"><x:out select="$milestone/card_type_value"/></c:set>
                    <cpt:select id="id_type_${index}" key="id_type" name="card_type" value="${card_type }"  onChange="initControlValue(this.id);changeCard('tblMileStones3');"></cpt:select>
                    <input type="hidden" id="card_type_value_${index}" name="persons/person[${flag}${index}]/card_type_value" value="${card_type }" label="第${index+1 }行证件类型" class="required input_text"/>
                    <input type="hidden" id="card_type_name_${index}" name="persons/person[${flag}${index}]/card_type_name" value="<x:out select="$milestone/card_type_name"/>" />
                </td> --%>


            <td align="center"><c:set var="money_where_value">
                <x:out select="$shibei/money_where_value" />
            </c:set> <cpt:select id="money_where_${index }" key="money_where2"
                                 name="money_where" value="${money_where_value }"
                                 onChange="
	 				 initControlValue(this.id);
	 				 countTable_swj4('shibei','zcshebei_total_num',5,9);
	 				 countTable_swj5('shibei','zxshebei_total_num',5,9);
	 				 countTable_swj7('shibei','zcshebei_total_price',7,9);
	 				 countTable_swj6('shibei','zxshebei_total_price',7,9);"></cpt:select>
                <input type="hidden"
                       name="shibeis/shibei[${flag}${index}]/money_where_value"
                       class="required input_text" value="${money_where_value }"
                       label="经费来源" /> <input type="hidden"
                                              name="shibeis/shibei[${flag}${index}]/money_where_name"
                                              value="<x:out select="$shibei/money_where_name"/>" /></td>

        </tr>
        <c:set value="${index+1}" var="index" scope="page" />
    </x:forEach>
    </tbody>

</table>
<table class="t_css">
    <col width="40%">
    <col width="10%">
    <col width="10%">
    <col width="10%">
    <col width="10%">
    <tr>
        <td align="left">财政专项资金拟购仪器设备合计：</td>
        <td align="center"><input type="text" id="zxshebei_total_num"
                                  disabled name="invoices/zxshebei_total_num" label="财政专项资金拟购仪器设备合计"
                                  onfocus="InitInput.setNumber(this,7,0,0)"
                                  style="text-align: right; width: 80%" class="required gray"
                                  value="<x:out select="$xmlData/data/invoices/zxshebei_total_num" />" />
        </td>
        <td align="center">/</td>
        <td align="center"><input type="text" id="zxshebei_total_price"
                                  disabled name="invoices/zxshebei_total_price" label="财政专项资金拟购仪器设备合计"
                                  onfocus="InitInput.setNumber(this,9,4,4)"
                                  style="text-align: right; width: 80%" class=" required gray"
                                  value="<x:out select="$xmlData/data/invoices/zxshebei_total_price" />" />
        </td>
        <td align="center">/</td>
        <td align="center">/</td>
    </tr>
    <tr>
        <td align="left">自筹资金及其他资金拟购仪器设备合计：</td>
        <td align="center"><input type="text" id="zcshebei_total_num"
                                  disabled name="invoices/zcshebei_total_num" label="自筹资金及其他资金拟购仪器设备合计"
                                  onfocus="InitInput.setNumber(this,7,0,0)"
                                  style="text-align: right; width: 80%" class=" required gray"
                                  value="<x:out select="$xmlData/data/invoices/zcshebei_total_num" />" />
        </td>
        <td align="center">/</td>
        <td align="center"><input type="text" id="zcshebei_total_price"
                                  disabled name="invoices/zcshebei_total_price"
                                  label="自筹资金及其他资金拟购仪器设备合计" onfocus="InitInput.setNumber(this,9,4,4)"
                                  style="text-align: right; width: 80%" class=" required gray"
                                  value="<x:out select="$xmlData/data/invoices/zcshebei_total_price" />" />
        </td>
        <td align="center">/</td>
        <td align="center">/</td>
    </tr>
    <tr>
        <td align="left">仪器设备费用总计：</td>
        <td align="center"><input type="text" id="shebei_total_num"
                                  disabled name="invoices/shebei_total_num" label="仪器设备费用总计"
                                  onfocus="InitInput.setNumber(this,7,0,0)"
                                  style="text-align: right; width: 80%" class=" required gray"
                                  value="<x:out select="$xmlData/data/invoices/shebei_total_num" />" />

        </td>
        <td align="center">/</td>
        <td align="center"><input type="text" id="shebei_total_price"
                                  disabled name="invoices/shebei_total_price" label="仪器设备费用总计"
                                  onfocus="InitInput.setNumber(this,9,4,4)"
                                  style="text-align: right; width: 80%" class=" required gray"
                                  value="<x:out select="$xmlData/data/invoices/shebei_total_price" />" />
        </td>
        <td align="center">/</td>
        <td align="center">/</td>
    </tr>
</table>
<table width="98%" align="center" border="0" cellpadding="0"
       cellspacing="1">
    <tr>
        <td><input class="button_02" type="button" name="cmdAddbefore"
                   value="添加"
                   onclick="addNewRow('shibei');showDateTag('shibei');try{top.resizeFrame();}catch(e){};countTable_swj1('shibei','shebei_total_num',5);countTable_swj2('shibei','shebei_total_price',7);countTable_swj3('shibei','shebei_total_price',5,6,7);">
            &nbsp;<input class="button_02" name="cmdMovePrev" type="button"
                         value="上移" onclick="movePrev('shibei','setshibei');"> &nbsp;<input
                    class="button_02" name="cmdMoveNext" type="button" value="下移"
                    onclick="moveNext('shibei','setshibei');"> &nbsp;<input
                    class="button_02" name="cmddel" type="button" value="删除"
                    onclick="deleteSelectedRow('shibei','项目拟购置、试制科研仪器设备清单');countTable_swj1('shibei','shebei_total_num',5);countTable_swj2('shibei','shebei_total_price',7);countTable_swj3('shibei','shebei_total_price',5,6,7);countTable_swj4('shibei','zcshebei_total_num',5,9);countTable_swj5('shibei','zxshebei_total_num',5,9); countTable_swj7('shibei','zcshebei_total_price',7,9); countTable_swj6('shibei','zxshebei_total_price',7,9);">
        </td>
    </tr>
</table>



<script type="text/javascript">
	$(function(){
		//changeCss();
		/*fileInit_1("tblMileStones1","PDF",null,"{'PDF':'20480'}");
		$("#tblMileStones1").find(".file").hide();*/

	});
	function changeCss() {
		$("table.t_css").each(function(){
			$(this).find("tr:even").removeClass().addClass("li_1");
			$(this).find("tr:odd").removeClass().addClass("li_2");
		});
		/*changeCss1("fundInfo","tblMileStones1");*/
		$("div[id^='checkbox_dyn_']").each(function () {
			$(this).find("tr").removeClass("li_1")
			$(this).find("tr").removeClass("li_2")
		})
	}
	function changeCss1(id1,id2) {
		if($("#"+id1+" tr:last").attr("class")=="li_1"){
			$("#"+id2+" tr").removeClass("li_1").addClass("li_2");
		}else{
			$("#"+id2+" tr").removeClass("li_2").addClass("li_1");
		}
	}



	function uploadfile(index,i){
		if(2==index){
			$("#proof_file_data").click();

		}
		else
			$("#card_file").click();
	}
	/* function show(index){
        $("#kepu").find("#proof_file"+index).show();
    } */
	function fileInit_1(tableId, type, width, validateJson) {
		var imgres="";

		if(locale=="en_US"){
			imgres="Upload_EN.gif";

		}else{
			imgres="Upload_2.gif";

		}
		$("#" + tableId).find(":file").filestyle({
			image : res + "/images/"+imgres,
			imageheight : 25,
			imagewidth : 56,
			width : width
		});
		$("#" + tableId).find(":file").not("#filedata\\[0\\]").each(function(i) {
			$(this).change(function() {
				var str = $(this).attr("id");
				var index = str.charAt(str.length - 1);
				showFileName_1($(this), tableId, type, validateJson,index);
			});
		});
	}

	function showFileName_1(obj, tableId, type, validateJson,index) {
		var max = null;
		var fileTblId=null;// 文件列表的表格id

		fileTblId=tableId;
		var filedata = obj.val();
		if (filedata == '')
			return;
		else if(max!=null && $.isNumeric(max) && fileTblId!=null && $("#"+fileTblId+" tr:gt(1)").length>=max){
			var label="";
			if($("#"+fileTblId).attr("label")!=null)
				label=$("#"+fileTblId).attr("label");

			scmWarn(label+messageTip.canNotUploadMoreThan+max+messageTip.files1);
			return;
		} else {
			var fileName = filedata.substring(filedata.replace(/\\/g, '/')
					.lastIndexOf('/') + 1);
			var end = fileName.substring(fileName.lastIndexOf(".") + 1,
					fileName.length).toUpperCase();
			if (type.indexOf(end) < 0) {
				scmWarn(messageTip.pleaseUpload + type + messageTip.files2, "100px");
				return;
			}
		}

		$("#" + tableId + " .file").val(fileName);
		ajaxFileUpload_1(obj,"orgattach", tableId, type, max, validateJson,index);
	}

	function ajaxFileUpload_1(obj,type, tblId, filetype, max, validateJson,index) {
		irisAjaxFileUpload_1(obj,type, tblId, filetype, max, validateJson,index);
	}

	function uploadSuccess_1(obj,data, tableId, filetype,index){
		$("#"+tableId).find("#file_code"+index).val(data[data.length-1].fileCode);
		$("#"+tableId).find("#file_name"+index).text(data[data.length-1].fileName);
		$("#"+tableId).find("#file_url"+index).attr("href", downloadPath + data[data.length-1].fileCode);
		$("#proof_file"+index).show();
		$("#sy_delConent"+index).show();

		/*              var fileDate = $("#" + tableId).find("span[id='file_date'"+index+"]");// 上传时间对象
        */
		var fileDate = $("#" + tableId).find("#file_date"+index);// 上传时间对象
		var nowTime = showLocale(new Date());
		fileDate.text(nowTime);
		$("#"+tableId).find("#"+index).show();
	}

	function irisAjaxFileUpload_1(obj,type, tableId, fileType, max, validateJson,index) {
		if (type == null || type == '') {
			scmWarn(messageTip.pleaseEnterTypeOfAttachment);
			return;
		}
		$("#"+tableId+" input[type='file']").not(obj).each(function(){
			this.outerHTML=this.outerHTML.replace(/(value=\").+\"/i,"$1\"");
		});


		prcWin.openWin();// 打开遮罩层
		$.ajaxFileUpload({
			url : ctx + '/file/ajax-fileupload',// 请求地址
			secureuri : false,// 一般设置为false
			fileElementId : 'filedata',// 文件的id属性
			limitSize : '10',// 允许上传的文件大小,单位M
			allowType : '',// 允许上传的文件类型.
			data : {
				'type' : type,
				'validateJson':validateJson
			},
			tableId : tableId,// tableID
			dataType : 'json',// 返回值类型
			success : function(data, status) // 服务器成功响应处理函数
			{
				if (data.result == 'error') {
					scmWarn(data.msg);
				} else {

					uploadSuccess_1(obj,data, tableId, fileType,index);


					$("#"+tableId).find(":file").not("#filedata\\[0\\]").each(function(i) {
						fileType="JPG，PNG，DOC，WPS，DOCX，PDF，XLS，XLSX，TIFF，RAR";
						validateJson="{'JPG':'20480','PNG':'20480','DOC':'20480','WPS':'20480','DOCX':'20480','PDF':'20480','XLS':'20480','XLSX':'20480','TIFF':'20480','RAR':'20480'}";
						$(this).unbind("change");
						$(this).change(function() {
							var str = $(this).attr("id");
							var index = str.charAt(str.length - 1);
							showFileName_1($(this), tableId, fileType, validateJson,index);
						});
					});
				}
				prcWin.closeWin();// 关闭遮罩层
			},
			error : function(data, status, e)// 服务器响应失败处理函数
			{
				$("#"+tableId+" input[type='file']").each(function(j) {
					this.outerHTML=this.outerHTML.replace(/(value=\").+\"/i,"$1\"");
				});


				$("#"+tableId).find(":file").not("#filedata\\[0\\]").each(function(i) {
					fileType="JPG，PNG，DOC，WPS，DOCX，PDF，XLS，XLSX，TIFF，RAR";
					validateJson="{'JPG':'20480','PNG':'20480','DOC':'20480','WPS':'20480','DOCX':'20480','PDF':'20480','XLS':'20480','XLSX':'20480','TIFF':'20480','RAR':'20480'}";
					$(this).unbind("change");
					$(this).change(function() {
						showFileName_1($(this), "mainGoodsInfo", fileType, validateJson,index);
					});
				});
				if (data && data.responseText && data.responseText.indexOf('413') > -1) {
				scmError("上传的文件超过限制大小！");
			} else {
				scmError(status);
			}
				prcWin.closeWin();// 关闭遮罩层
			},
			complete:function()
			{
				prcWin.closeWin();// 关闭遮罩层
			}
		});

	}
	function countFundAuto(idStart, countStr, totalStr) {
		var indexs = countStr.split(",");
		var count = 0;
		for ( var i = 0; i < indexs.length; i++) {
			var fund = $("#" + idStart + indexs[i]).val();
			if (!$.isNumeric(fund))
				fund = "0";
			count = ((parseFloat(count)*10000 + parseFloat(fund)*10000)/10000).toFixed(2);
			/*count = ((parseFloat(count)*100 + parseFloat(fund)*100)/100).toFixed(2);*/
			/*count = parseFloat(count) + parseFloat(fund);*/

		}


		count = formatNumberAuto(count.toString(), 9, 2, 2);// 格式化金额

		//add by cg 扩展：对于多个输入框所求得的和，同时赋给某几个文本框
		var totalStrArr = totalStr.split(",");
		var totalId;
		for(var i = 0;i < totalStrArr.length; i++ ) {
			totalId = totalStrArr[i];

			$("#" + idStart + totalId).val(count);
		}
	}

	function delContent_1(tableId,index) {
		if (confirm("你确定要删除该附件？")) {
			/* $("#" + tableId).find("input[id='file_code']").val("");// 清空文件名
            $("#" + tableId).find("span[id='file_date']").text("");// 清空文件code
            $("#" + tableId).find("span[id='file_name']").text("");// 清空文件上传日期
            $("#"+tableId).find("#proof_content").hide(); */

			$("#" + tableId).find("#file_code"+index).val("");// 清空文件名
			$("#" + tableId).find("#file_date"+index).text("");// 清空文件code
			$("#" + tableId).find("#file_name"+index).text("");// 清空文件上传日期
			$("#"+tableId).find("#proof_content"+index).hide();

			$("#sy_delConent"+index).hide();
			$("#file"+index).val("");
			$("#proof_file"+index).hide();

			/* $("#" + tableId).find("#proof_file"+index).hide(); */

		}
	}
	/**
	 * 数字显示函数，适用于可输入四位小数或二位少数
	 * number:值
	 * maxIntLength:整数部分最大长度,
	 * maxDecimalLength:小数部分最大长度,
	 * displayDecimal:小数部分显示出的长度
	 */
	function formatNumberAuto(number,maxIntLength,maxDecimalLength,displayDecimal) {
		if(number.indexOf(".") !=number.lastIndexOf(".")){
			number = number.substring(0,number.lastIndexOf("."))+ ''+ number.substring(number.lastIndexOf(".")+1);
		}
		if(number.indexOf(".")>=0){//如果是输入值中带有小数点则检查小数部分长度是否达到了最低显示的长度，如果没有则补0
			var integral="";
			var decimal="";
			if (number.indexOf(".")==0&&number.length>1){
				integral="0";
				decimal=number.substring(1,number.length);
			}else if (number.indexOf(".")>0){
				integral=number.substring(0,number.indexOf("."));
				decimal=number.substring(number.indexOf(".")+1,number.length);
			}
			var f=decimal.substring(displayDecimal,maxDecimalLength);
			//小数四位，如果后两位为00，就去掉
			if(f=="00"){
				decimal=decimal.substring(0, displayDecimal);
			}else{
				decimal=decimal.substring(0, maxDecimalLength);
			}
			number=integral+"."+decimal;
		}else if (number!=""&&displayDecimal>0){//输入的是整数则补上小数部分，全部为0
			number=number+".";
			for (var i=0;i<displayDecimal;i++){
				number=number+"0";
			}
		}
		return number;
	};
    function countTable_swj1(tabId,objId,col1){
        var count =0;
        $("#"+tabId+" tr:gt(1)").each(function(){
            var fund1 = $(this).children().eq(col1).children().val();
            if (!$.isNumeric(fund1)){
                fund1 = "0";
            }
            count = ((parseFloat(count)*10000 + parseFloat(fund1)*10000)/10000);
        });
        count = formatNumberAuto(count.toString(), 7, 0, 0);

        $("#" + objId).val(count);
    }
    function countTable_swj2(tabId,objId,col1){
        var count =0;
        $("#"+tabId+" tr:gt(1)").each(function(){
            var fund1 = $(this).children().eq(col1).children().val();
            if (!$.isNumeric(fund1)){
                fund1 = "0";
            }
            count = ((parseFloat(count)*10000 + parseFloat(fund1)*10000)/10000).toFixed(4);
        });
        count = formatNumberAuto(count.toString(), 9, 2, 2);
        $("#" + objId).val(count);
    }
    function countTable_swj3(tabId,objId,col1,col2,col3){
        var count =0;
        var count2 =0;
        $("#"+tabId+" tr:gt(1)").each(function(){
            var fund1 = $(this).children().eq(col1).children().val();
            var fund2 = $(this).children().eq(col2).children().val();
            //alert(fund1+"____"+fund2);
            if (!$.isNumeric(fund1)){
                fund1 = "0";
            }
            if (!$.isNumeric(fund2)){
                fund2 = "0";
            }
            count = (((parseFloat(fund2)*10000) /10000)* ((parseFloat(fund1)*10000)/10000)).toFixed(4);
            count2 = ((parseFloat(count2)*10000 + parseFloat(count)*10000)/10000).toFixed(4);
            count = formatNumberAuto(count.toString(), 9, 2, 2);
            count2 = formatNumberAuto(count2.toString(), 9, 2, 2);
            $(this).children().eq(col3).children().val(count);
        });
        $("#" + objId).val(count2);
    }
    function countTable_swj4(tabId,objId,col1,col4){
        var count =0;
        $("#"+tabId+" tr:gt(1)").each(function(){
            var fund1 = $(this).children().eq(col1).children().val();
            var money_val = $(this).children().eq(col4).children().val();
            if (!$.isNumeric(fund1)){
                fund1 = "0";
            }
            if ((money_val=='02')||(money_val=='03')){
                count = ((parseFloat(fund1)*10000 + parseFloat(count)*10000)/10000);
            }
        });
        count = formatNumberAuto(count.toString(), 7, 0, 0);
        $("#" + objId).val(count);
    }
    function countTable_swj5(tabId,objId,col1,col4){
        var count =0;
        $("#"+tabId+" tr:gt(1)").each(function(){
            var fund1 = $(this).children().eq(col1).children().val();
            var money_val = $(this).children().eq(col4).children().val();
            if (!$.isNumeric(fund1)){
                fund1 = "0";
            }
            if (money_val=='01'){
                count = ((parseFloat(fund1)*10000 + parseFloat(count)*10000)/10000);
            }
        });
        count = formatNumberAuto(count.toString(), 7, 0, 0);
        $("#" + objId).val(count);
    }
    function countTable_swj6(tabId,objId,col1,col4){
        var count =0;
        $("#"+tabId+" tr:gt(1)").each(function(){
            var fund1 = $(this).children().eq(col1).children().val();
            var money_val = $(this).children().eq(col4).children().val();
            if (!$.isNumeric(fund1)){
                fund1 = "0";
            }
            if (money_val=='01'){
                count = ((parseFloat(fund1)*10000 + parseFloat(count)*10000)/10000).toFixed(4);
            }
        });
        count = formatNumberAuto(count.toString(), 9, 2, 2);
        $("#" + objId).val(count);
    }
    function countTable_swj7(tabId,objId,col1,col4){
        var count =0;
        $("#"+tabId+" tr:gt(1)").each(function(){
            var fund1 = $(this).children().eq(col1).children().val();
            var money_val = $(this).children().eq(col4).children().val();
            if (!$.isNumeric(fund1)){
                fund1 = "0";
            }
            if ((money_val=='02')||(money_val=='03')){
                count = ((parseFloat(fund1)*10000 + parseFloat(count)*10000)/10000).toFixed(4);
            }
        });
        count = formatNumberAuto(count.toString(), 9, 2, 2);
        $("#" + objId).val(count);
    }
    $(function() {
        $("#grant_schedule tr:even").addClass("li_1");
        $("#grant_schedule tr:odd").addClass("li_2");
    });
    $(document).ready(function(){
        $("#participateorg").each(function(){
            $(this).find("tr:even").addClass("li_1");
            $(this).find("tr:odd").addClass("li_2");
        });
    });
</script>